use serde::{Deserialize, Serialize};
use derivative::Derivative;

#[rbatis::crud_table(table_name:"users")]
#[derive(Serialize, Deserialize, Clone, Derivative, Debug)]
#[derivative(Default)]
pub struct UserDBO {
  pub id: String,
  pub email: String,
  pub username: String,
  pub cred: String,
}

#[rbatis::crud_table(table_name:"users")]
#[derive(async_graphql::InputObject, Serialize, Deserialize, Clone, Debug)]
pub struct NewUser {
  pub id: String,
  pub email: String,
  pub username: String,
  pub cred: String,
}


